package com.charger.chargingStationCharger.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.charger.chargingStationCharger.domain.ChargingstationCharger;
import com.charger.chargingStationCharger.service.ChargingstationChargerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

/**
 * @ClassName ChargingstationChargerController
 * @Description TODO
 * @Author LiuYao
 * @Date 2024年11月28日 15:47
 * @Version 1.0
 */
@RestController
@RequestMapping("/charger/chargingstationCharger")
public class ChargingstationChargerController {
    @Autowired
    private ChargingstationChargerService chargingstationChargerService;
    @PreAuthorize("@ss.hasPermi('charger:chargingstationCharger:remove')")
    @DeleteMapping("/{chargerIds}")
    public void remove(@PathVariable Long[] chargerIds) {
        QueryWrapper<ChargingstationCharger> wrapper = new QueryWrapper<>();
        wrapper.in("charger_id",chargerIds);
        chargingstationChargerService.remove(wrapper);
    }


}
